package models

import "time"

type User struct {
	Id        int       `gorm:"primary_key;auto_increment" json:"id"`
	Identity  string    `gorm:"size:255" json:"identity"`
	Name      string    `gorm:"size:255" json:"name"`
	Password  string    `gorm:"size:255" json:"password"`
	Phone     string    `gorm:"size:20" json:"phone"`
	Mail      string    `gorm:"size:100" json:"mail"`
	CreatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"created_at"`
	UpdatedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"updated_at"`
	DeletedAt time.Time `gorm:"default:CURRENT_TIMESTAMP" json:"deleted_at"`
}

func (*User) TableName() string {
	return "user"
}
